#include <stdio.h>

int main()
{
	int y = 0;
	int x = 5;
//	x < 1? (y = x):(x < 10 ? (y = 2 * x - 1):(y = 3 * x - 11)); 
	
	if(x < 1)	
	{
		y = x;	
	}
	else  // x >= 1
	{
		if(x < 10)
		{
			y = 2 * x - 1;	
		}
		else
		{
			y = 3 * x - 11;	
		}	
		
	} 

	printf("y == %d\n",y);

	return 0;
}

